
public class Hb{

    public static void main(String[] args) {
        int[][] arr = new int[2][3];
		for(int i = 0; i< arr.length; i++){
			for(int j = 0; j<arr[i].length; j++){
				System.out.print(arr[i][j] + " ");
			} 
			System.out.println();
		}
		System.out.println("-------------------------------");
		
		int num = 1;
		for(int i = 0; i< arr.length; i++){
			for(int j = 0; j<arr[i].length; j++){
				arr[i][j] =num ++ ;
			} 
			System.out.println();
		}
		for(int i = 0; i< arr.length; i++){
			for(int j = 0; j<arr[i].length; j++){
				System.out.print(arr[i][j] + " ");
			} 
			System.out.println();
		}
    }
}